package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author wmz
 * @date 2024/1/25 22:27
 * @description SetmealDishMapper
 */
@Mapper
public interface SetmealDishMapper {
    void insert(List<SetmealDish> setmealDishList);

    /**
     * 通过setmealIds删除套餐与菜品的关系
     * @param setmealIds
     */
    void deleteSetmealDishBySetmealIds(List<Long> setmealIds);

    /**
     * 根据setmealId查询关系
     * @param setmealId
     * @return
     */
    List<SetmealDish> selectSetmealDishBySetmealId(Long setmealId);

    /**
     * 根据setmealId查询dishIdList
     * @param setmealId
     * @return
     */
    List<Long> selectDishIdBySetmealId(Long setmealId);

}
